package day27;

import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JList;

public class id extends JPanel {
	private JTextField textField;
	private JButton btnNewButton;
	private JList list;

	/**
	 * Create the panel.
	 */
	public id() {
		setLayout(null);
		add(getTextField());
		add(getBtnNewButton());
		add(getList());

	}
	private JTextField getTextField() {
		if (textField == null) {
			textField = new JTextField();
			textField.setBounds(12, 26, 238, 32);
			textField.setColumns(10);
		}
		return textField;
	}
	private JButton getBtnNewButton() {
		if (btnNewButton == null) {
			btnNewButton = new JButton("입력");
			btnNewButton.setBounds(290, 30, 97, 23);
		}
		return btnNewButton;
	}
	private JList getList() {
		if (list == null) {
			list = new JList();
			list.setBounds(55, 93, 326, 173);
		}
		return list;
	}
}
